﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Demo.Common
{
    public class BitHelper
    {
        public static string BitToStr(byte[] arr)
        {
            return Convert.ToBase64String(arr);
        }


        public static byte[] StrToByte(string str)
        {
            return Convert.FromBase64String(str);
        }
         

    }
}
